home *** CD-ROM | disk | FTP | other *** search
/ PCMania 75 / PCMania CD75_1.iso / hotme5 / pftw1.pkg / data1.cab / Assets_-_top / Assets / fxmaster.xml < prev    next >
Extensible Markup Language  |  1998-11-03  |  48KB  |  1,271 lines

  1. <?xml version="1.0" standalone="yes"?>
  2. <!-- XML declaration 19980802 -->
  3.  
  4. <!-- Arrows: Done as of Aug 10th -->
  5.  
  6. <Items>
  7.  
  8. <Item Type="File" CLASS="Arrow Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  9.         <Icon SRC="%Filename%"/>
  10.         <Description>%ASK:Description:%{Arrow ALT Text}</Description>
  11.         <Filename SRC="%Filename%"/>
  12.         <SCRIPT LANGUAGE="JScript"><![CDATA[
  13.         var src, dest, attr;
  14.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  15.  
  16.         function buildpath()
  17.                 {
  18.                 if (ActiveDocument.InCurrentProject)
  19.                         {
  20.                         dst = Application.ProjectDirectory + "\\images\\arrows\\%Filename%";
  21.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  22.                         }
  23.                 else
  24.                         {
  25.                         dst = ActiveDocument.Path + "\\images\\arrows\\%Filename%";
  26.                         attr = "images/arrows/%Filename%";
  27.                         }
  28.                 }
  29.  
  30.         function dropfxnow()
  31.                 {
  32.                 Application.FX.CopyFile(src, dst);
  33.                 Application.FX.SelectDropPoint();
  34.                 Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  35.                 Application.FX.ShowDialog('ANCHOR');
  36.                 }
  37.  
  38.         // First, check if the file is saved
  39.         if (ActiveDocument.Path != "")
  40.                 {
  41.                 buildpath();
  42.                 dropfxnow();
  43.                 }
  44.         else
  45.                 {
  46.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  47.  
  48.                 if (ans == 1)
  49.                         {
  50.                         ActiveDocument.SaveAs();
  51.                         }
  52.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  53.                         {
  54.                         buildpath();
  55.                         dropfxnow();
  56.                         }
  57.                 }
  58.         
  59.         ]]>
  60.         </SCRIPT>
  61. </Item>
  62.  
  63. <!-- Arrows: Done as of Aug 10th -->
  64.  
  65. <!-- Backgrounds: Done as of Aug 10th -->
  66.  
  67. <Item Type="File" CLASS="Background" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  68.         <Icon SRC="%Filename%"/>
  69.         <Description>Background: %Filename%</Description>
  70.         <Filename SRC="%Filename%"/>
  71.         <SCRIPT LANGUAGE="JScript"><![CDATA[
  72.         var src, dest, attr;
  73.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%";
  74.  
  75.         function buildpath() //customize this for each FX type
  76.                 {
  77.                 if (ActiveDocument.InCurrentProject)
  78.                         {
  79.                         dst = Application.ProjectDirectory + "\\images\\backgrounds\\%Filename%";
  80.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  81.                         }
  82.                 else
  83.                         {
  84.                         dst = ActiveDocument.Path + "\\images\\backgrounds\\%Filename%";
  85.                         attr = "images/backgrounds/%Filename%";
  86.                         }
  87.                 }
  88.  
  89.         function dropfxnow()
  90.                 {
  91.                 // Only attmpt to copy the file if the SRC is not empty
  92.                 if ("%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%" != "")
  93.                         {
  94.                         Application.FX.CopyFile(src, dst);
  95.                         Application.FX.SetAttribute('BODY', 'BACKGROUND', attr, 'first');
  96.                         }
  97.                 else
  98.                         {
  99.                         Application.FX.SetAttribute('BODY', 'BACKGROUND', '', 'first');
  100.                         }
  101.                 }
  102.  
  103.  
  104.         // Check if the file is saved
  105.  
  106.         if (ActiveDocument.Path != "")
  107.                 {
  108.                 buildpath();
  109.                 dropfxnow();
  110.                 }
  111.         else
  112.                 {
  113.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  114.  
  115.                 if (ans == 1)
  116.                         {
  117.                         ActiveDocument.SaveAs();
  118.                         }
  119.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  120.                         {
  121.                         buildpath();
  122.                         dropfxnow();
  123.                         }
  124.                 }
  125.         ]]>
  126.         </SCRIPT>
  127. </Item>
  128.  
  129. <!-- Backgrounds: Done as of Aug 10th -->
  130.  
  131.  
  132. <!-- Buttons: Done as of Aug 10th -->
  133.  
  134.     <Item Type="File" CLASS="Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  135.         <Icon SRC="%Filename%"/>
  136.         <Description>%ASK:Description:%{Button ALT Text}</Description>
  137.         <Filename SRC="%Filename%"/>
  138.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  139.         var src, dest, attr;
  140.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  141.  
  142.         function buildpath()
  143.                 {
  144.                 if (ActiveDocument.InCurrentProject)
  145.                         {
  146.                         dst = Application.ProjectDirectory + "\\images\\buttons\\%Filename%";
  147.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  148.                         }
  149.                 else
  150.                         {
  151.                         dst = ActiveDocument.Path + "\\images\\buttons\\%Filename%";
  152.                         attr = "images/buttons/%Filename%";
  153.                         }
  154.                 }
  155.  
  156.         function dropfxnow()
  157.                 {
  158.                 Application.FX.CopyFile(src, dst);
  159.                 Application.FX.SelectDropPoint();
  160.                 Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  161.                 Application.FX.ShowDialog('ANCHOR');
  162.                 }
  163.  
  164.         // First, check if the file is saved
  165.         if (ActiveDocument.Path != "")
  166.                 {
  167.                 buildpath();
  168.                 dropfxnow();
  169.                 }
  170.         else
  171.                 {
  172.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  173.  
  174.                 if (ans == 1)
  175.                         {
  176.                         ActiveDocument.SaveAs();
  177.                         }
  178.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  179.                         {
  180.                         buildpath();
  181.                         dropfxnow();
  182.                         }
  183.                 }
  184.         
  185.         ]]>
  186.       </SCRIPT>
  187.     </Item>
  188.  
  189. <!-- Buttons: Done as of Aug 10th -->
  190.  
  191. <!-- Banners: Done as of Aug 10th -->
  192.  
  193.     <Item Type="File" CLASS="Banner" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  194.         <Icon SRC="%Filename%"/>
  195.         <Description>%ASK:Description:%{Banner ALT Text}</Description>
  196.         <Filename SRC="%Filename%"/>
  197.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  198.         var src, dest, attr;
  199.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  200.  
  201.         function buildpath()
  202.                 {
  203.                 if (ActiveDocument.InCurrentProject)
  204.                         {
  205.                         dst = Application.ProjectDirectory + "\\images\\banners\\%Filename%";
  206.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  207.                         }
  208.                 else
  209.                         {
  210.                         dst = ActiveDocument.Path + "\\images\\banners\\%Filename%";
  211.                         attr = "images/banners/%Filename%";
  212.                         }
  213.                 }
  214.  
  215.         function dropfxnow()
  216.                 {
  217.                 Application.FX.CopyFile(src, dst);
  218.                 Application.FX.SelectDropPoint();
  219.                 Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0">');
  220.                 }
  221.  
  222.         // First, check if the file is saved
  223.         if (ActiveDocument.Path != "")
  224.                 {
  225.                 buildpath();
  226.                 dropfxnow();
  227.                 }
  228.         else
  229.                 {
  230.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  231.  
  232.                 if (ans == 1)
  233.                         {
  234.                         ActiveDocument.SaveAs();
  235.                         }
  236.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  237.                         {
  238.                         buildpath();
  239.                         dropfxnow();
  240.                         }
  241.                 }
  242.         
  243.         ]]>
  244.       </SCRIPT>
  245.     </Item>
  246.  
  247. <!-- Banners: Done as of Aug 10th -->
  248.  
  249. <!-- Bulleted Lists with IMG bullets: Done as of Aug 10th -->
  250.  
  251.  
  252.     <Item Type="File" CLASS="Bulleted List" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  253.         <Icon SRC="%Filename%"/>
  254.         <Description>*</Description>
  255.         <Filename SRC="%Filename%"/>
  256.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  257.         var src, dest, attr;
  258.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  259.  
  260.         function buildpath()
  261.                 {
  262.                 if (ActiveDocument.InCurrentProject)
  263.                         {
  264.                         dst = Application.ProjectDirectory + "\\images\\bullets\\%Filename%";
  265.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  266.                         }
  267.                 else
  268.                         {
  269.                         dst = ActiveDocument.Path + "\\images\\bullets\\%Filename%";
  270.                         attr = "images/bullets/%Filename%";
  271.                         }
  272.                 }
  273.  
  274.         function dropfxnow()
  275.                 {
  276.                 Application.FX.SelectDropPoint();
  277.                 Application.FX.CopyFile(src, dst);
  278.                 Application.FX.HTML('<DL><DT><IMG SRC="' + attr + '" ALT="*" BORDER="0" HSPACE="5" CLASS="SQBULLET" ALIGN="ABSMIDDLE"><\/DT><\/DL>');
  279.                 Selection.MoveLeft(0);Selection.MoveRight(0);
  280.                 }
  281.  
  282.         // First, check if the file is saved
  283.         if (ActiveDocument.Path != "")
  284.                 {
  285.                 buildpath();
  286.                 dropfxnow();
  287.                 }
  288.         else
  289.                 {
  290.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  291.  
  292.                 if (ans == 1)
  293.                         {
  294.                         ActiveDocument.SaveAs();
  295.                         }
  296.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  297.                         {
  298.                         buildpath();
  299.                         dropfxnow();
  300.                         }
  301.                 }
  302.         
  303.         ]]>
  304.       </SCRIPT>
  305.     </Item>
  306.  
  307. <!-- Bulleted Lists with IMG bullets: Done as of Aug 10th -->
  308.  
  309. <!-- Clipart: Done as of Aug 22nd -->
  310.  
  311.     <Item Type="File" CLASS="Clipart" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  312.         <Icon SRC="%Filename%"/>
  313.         <Description>%ASK:Description:%{Clipart ALT Text}</Description>
  314.         <Filename SRC="%Filename%"/>
  315.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  316.         var src, dest, attr;
  317.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  318.  
  319.         function buildpath()
  320.                 {
  321.                 if (ActiveDocument.InCurrentProject)
  322.                         {
  323.                         dst = Application.ProjectDirectory + "\\images\\clipart\\%Filename%";
  324.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  325.                         }
  326.                 else
  327.                         {
  328.                         dst = ActiveDocument.Path + "\\images\\clipart\\%Filename%";
  329.                         attr = "images/clipart/%Filename%";
  330.                         }
  331.                 }
  332.  
  333.         function dropfxnow()
  334.                 {
  335.                 Application.FX.SelectDropPoint();
  336.                 Application.FX.CopyFile(src, dst);
  337.                 Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0">');
  338.                 }
  339.  
  340.         // First, check if the file is saved
  341.         if (ActiveDocument.Path != "")
  342.                 {
  343.                 buildpath();
  344.                 dropfxnow();
  345.                 }
  346.         else
  347.                 {
  348.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  349.  
  350.                 if (ans == 1)
  351.                         {
  352.                         ActiveDocument.SaveAs();
  353.                         }
  354.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  355.                         {
  356.                         buildpath();
  357.                         dropfxnow();
  358.                         }
  359.                 }
  360.         
  361.  
  362.         ]]>
  363.       </SCRIPT>
  364.     </Item>
  365.  
  366. <!-- Clipart: Done as of Aug 10th -->
  367.  
  368. <!-- Horizontal Rules: Done as of Aug 10th -->
  369.  
  370.     <Item Type="File" CLASS="Horizontal Rule" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  371.         <Icon SRC="%Filename%"/>
  372.         <Description>%ASK:Description:%--------------------</Description>
  373.         <Filename SRC="%Filename%"/>
  374.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  375.         var src, dest, attr;
  376.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  377.  
  378.         function buildpath()
  379.                 {
  380.                 if (ActiveDocument.InCurrentProject)
  381.                         {
  382.                         dst = Application.ProjectDirectory + "\\images\\rules\\%Filename%";
  383.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  384.                         }
  385.                 else
  386.                         {
  387.                         dst = ActiveDocument.Path + "\\images\\rules\\%Filename%";
  388.                         attr = "images/rules/%Filename%";
  389.                         }
  390.                 }
  391.  
  392.         function dropfxnow()
  393.                 {
  394.                 Application.FX.CopyFile(src, dst);
  395.                 Application.FX.HTML('<P ALIGN=\"CENTER\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0"><\/P>');
  396.                 }
  397.  
  398.         // First, check if the file is saved
  399.         if (ActiveDocument.Path != "")
  400.                 {
  401.                 buildpath();
  402.                 dropfxnow();
  403.                 }
  404.         else
  405.                 {
  406.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  407.  
  408.                 if (ans == 1)
  409.                         {
  410.                         ActiveDocument.SaveAs();
  411.                         }
  412.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  413.                         {
  414.                         buildpath();
  415.                         dropfxnow();
  416.                         }
  417.                 }
  418.         
  419.         ]]>
  420.       </SCRIPT>
  421.     </Item>
  422.  
  423. <!-- Horizontal Rules: Done as of Aug 10th -->
  424.  
  425. <!-- Background Sounds: Done as of Aug 11th -->
  426.  
  427.  
  428.     <Item Type="File" CLASS="Background Sound" ID="%Filename%" FILEFILTER="*.wav;*.aif">
  429.         <Icon SRC="sound.gif"/>
  430.         <Description>%ASK:Description:%{Description Of Sound}</Description>
  431.         <Filename SRC="%Filename%"/>
  432.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  433.         var src, dest, attr;
  434.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%";
  435.  
  436.         function buildpath() //customize this for each FX type
  437.                 {
  438.                 if (ActiveDocument.InCurrentProject)
  439.                         {
  440.                         dst = Application.ProjectDirectory + "\\sounds\\%Filename%";
  441.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  442.                         }
  443.                 else
  444.                         {
  445.                         dst = ActiveDocument.Path + "\\sounds\\%Filename%";
  446.                         attr = "sounds/%Filename%";
  447.                         }
  448.                 }
  449.  
  450.         function dropfxnow()
  451.                 {
  452.                 // Only attmpt to copy the file if the SRC is not empty
  453.                 if ("%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%" != "")
  454.                         {
  455.                         Application.FX.CopyFile(src, dst);
  456.                         }
  457.                 Application.FX.HTML('<EMBED ID="SQBGSOUND" SRC="' + attr + '" AUTOSTART="TRUE" LOOP="FALSE" VOLUME="100" HIDDEN="TRUE">',null,'BODY','SQBGSOUND','START');
  458. //                Application.FX.SetAttribute('BGSOUND', 'SRC', attr, 'first');
  459.                 }
  460.  
  461.         // Check if the file is saved
  462.  
  463.         if (ActiveDocument.Path != "")
  464.                 {
  465.                 buildpath();
  466.                 dropfxnow(attr);
  467.                 }
  468.         else
  469.                 {
  470.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  471.  
  472.                 if (ans == 1)
  473.                         {
  474.                         ActiveDocument.SaveAs();
  475.                         }
  476.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  477.                         {
  478.                         buildpath();
  479.                         dropfxnow();
  480.                         }
  481.                 }
  482.         ]]>
  483.       </SCRIPT>
  484.     </Item>
  485.  
  486. <!-- Background Sounds: Done as of Aug 11th -->
  487.  
  488. <!-- Drop Caps: Done as of Aug 11th -->
  489.  
  490.     <Item Type="File" CLASS="Drop Capital" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  491.         <Icon SRC="%Filename%"/>
  492.         <Description>%ASK:Description:%{Enter The Letter Here}</Description>
  493.         <Filename SRC="%Filename%"/>
  494.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  495.         var src, dest, attr;
  496.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  497.  
  498.         function buildpath()
  499.                 {
  500.                 if (ActiveDocument.InCurrentProject)
  501.                         {
  502.                         dst = Application.ProjectDirectory + "\\images\\dropcaps\\%Filename%";
  503.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  504.                         }
  505.                 else
  506.                         {
  507.                         dst = ActiveDocument.Path + "\\images\\dropcaps\\%Filename%";
  508.                         attr = "images/dropcaps/%Filename%";
  509.                         }
  510.                 }
  511.  
  512.         function dropfxnow()
  513.                 {
  514.                 Application.FX.CopyFile(src, dst);
  515.                 Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0" ALIGN="LEFT">');
  516.                 }
  517.  
  518.         // First, check if the file is saved
  519.         if (ActiveDocument.Path != "")
  520.                 {
  521.                 buildpath();
  522.                 dropfxnow();
  523.                 }
  524.         else
  525.                 {
  526.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  527.  
  528.                 if (ans == 1)
  529.                         {
  530.                         ActiveDocument.SaveAs();
  531.                         }
  532.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  533.                         {
  534.                         buildpath();
  535.                         dropfxnow();
  536.                         }
  537.                 }
  538.         
  539.         ]]>
  540.       </SCRIPT>
  541.     </Item>
  542.  
  543. <!-- Drop Caps: Done as of August 11th -->
  544.  
  545. <!-- CSS Files: Done as of August 12th -->
  546.  
  547.     <Item Type="File" CLASS="Cascading Style Sheet" ID="%Filename%">
  548.         <Icon SRC="mwcos.gif"/>
  549.         <Description>Ask:%Description%:{Description Of Style Sheet}</Description>
  550.         <Filename SRC="%Filename%"/>
  551.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  552.         var src, dest, attr;
  553.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%";
  554.  
  555.         function buildpath()
  556.                 {
  557.                 if (ActiveDocument.InCurrentProject)
  558.                         {
  559.                         dst = Application.ProjectDirectory + "\\styles\\%Filename%";
  560.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  561.                         }
  562.                 else
  563.                         {
  564.                         dst = ActiveDocument.Path + "\\styles\\%Filename%";
  565.                         attr = "styles/%Filename%";
  566.                         }
  567.                 }
  568.  
  569.         function dropfxnow()
  570.                 {
  571.                 if (Application.WritableFileExists(src))
  572.                         {
  573.                         Application.FX.CopyFile(src, dst);
  574.                         Application.FX.HTML('<LINK HREF=\"' + attr + '\" TYPE=\"text/css" REL="stylesheet" TITLE="%Description%" ID="%Filename%">',null,'HEAD','%Filename%');
  575.                         }
  576.                 else
  577.                         {
  578.                         Application.NoticeBox("Sorry, the destination file can't be written",null, null,"Cancel");
  579.                         }
  580.                 }
  581.  
  582.         // First, check if the file is saved
  583.         if (ActiveDocument.Path != "")
  584.                 {
  585.                 buildpath();
  586.                 dropfxnow();
  587.                 }
  588.         else
  589.                 {
  590.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  591.  
  592.                 if (ans == 1)
  593.                         {
  594.                         ActiveDocument.SaveAs();
  595.                         }
  596.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  597.                         {
  598.                         buildpath();
  599.                         dropfxnow();
  600.                         }
  601.                 }
  602.         
  603.  
  604.         ]]>
  605.       </SCRIPT>
  606.     </Item>
  607.  
  608. <!-- CSS Files: Done as of August 12th -->
  609.  
  610.  
  611. <!-- Decor Item Templates August 10th -->
  612.  
  613.     <Item Type="File" CLASS="SQ Decor Arrow Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  614.         <Icon SRC="%Filename%"/>
  615.         <Description>%ASK:Description:%{Arrow ALT Text}</Description>
  616.         <Filename SRC="%Filename%"/>
  617.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  618.         var src, dest, attr;
  619.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
  620.  
  621.         function buildpath()
  622.                 {
  623.                 if (ActiveDocument.InCurrentProject)
  624.                         {
  625.                         dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
  626.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  627.                         }
  628.                 else
  629.                         {
  630.                         dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
  631.                         attr = "SMDecors/%Filename%";
  632.                         }
  633.                 }
  634.  
  635.         function dropfxnow()
  636.                 {
  637.                 Application.FX.CopyFile(src, dst);
  638.                 Application.FX.SelectDropPoint();
  639.                 Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  640.                 Application.FX.ShowDialog('ANCHOR');
  641.                 }
  642.  
  643.         // First, check if the file is saved
  644.         if (ActiveDocument.Path != "")
  645.                 {
  646.                 buildpath();
  647.                 dropfxnow();
  648.                 }
  649.         else
  650.                 {
  651.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  652.  
  653.                 if (ans == 1)
  654.                         {
  655.                         ActiveDocument.SaveAs();
  656.                         }
  657.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  658.                         {
  659.                         buildpath();
  660.                         dropfxnow();
  661.                         }
  662.                 }
  663.         
  664.         ]]>
  665.       </SCRIPT>
  666.     </Item>
  667.  
  668.     <Item Type="File" CLASS="SQ Decors Background" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  669.     <Icon SRC="%Filename%"/>
  670.     <Description>Background: %Filename%</Description>
  671.     <Filename SRC="%Filename%"/>
  672.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  673.         var src, dest, attr;
  674.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
  675.  
  676.         function buildpath()
  677.                 {
  678.                 if (ActiveDocument.InCurrentProject)
  679.                         {
  680.                         dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
  681.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  682.                         }
  683.                 else
  684.                         {
  685.                         dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
  686.                         attr = "SMDecors/%Filename%";
  687.                         }
  688.                 }
  689.  
  690.         function dropfxnow()
  691.                 {
  692.                 // Only attmpt to copy the file if the SRC is not empty
  693.                 if ("%thisItem.SQ_getChildAttribute("Filename", 0, "SRC")%" != "")
  694.                         {
  695.                         Application.FX.CopyFile(src, dst);
  696.                         Application.FX.SetAttribute('BODY', 'BACKGROUND', attr, 'first');
  697.                         }
  698.                 else
  699.                         {
  700.                         Application.FX.SetAttribute('BODY', 'BACKGROUND', '', 'first');
  701.                         }
  702.                 }
  703.  
  704.         // Check if the file is saved
  705.  
  706.         if (ActiveDocument.Path != "")
  707.                 {
  708.                 buildpath();
  709.                 dropfxnow();
  710.                 }
  711.         else
  712.                 {
  713.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  714.  
  715.                 if (ans == 1)
  716.                         {
  717.                         ActiveDocument.SaveAs();
  718.                         }
  719.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  720.                         {
  721.                         buildpath();
  722.                         dropfxnow();
  723.                         }
  724.                 }
  725.         ]]>
  726.       </SCRIPT>
  727.     </Item>
  728.  
  729.     <Item Type="File" CLASS="SQ Decor Banner" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  730.     <Icon SRC="%Filename%"/>
  731.     <Description>%ASK:Description:%{Banner ALT Text}</Description>
  732.     <Filename SRC="%Filename%"/>
  733.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  734.         var src, dest, attr;
  735.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
  736.  
  737.         function buildpath()
  738.                 {
  739.                 if (ActiveDocument.InCurrentProject)
  740.                         {
  741.                         dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
  742.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  743.                         }
  744.                 else
  745.                         {
  746.                         dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
  747.                         attr = "SMDecors/%Filename%";
  748.                         }
  749.                 }
  750.  
  751.         function dropfxnow()
  752.                 {
  753.                 Application.FX.CopyFile(src, dst);
  754.                 Application.FX.SelectDropPoint();
  755.                 Application.FX.HTML('<IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0">');
  756.                 }
  757.  
  758.         // First, check if the file is saved
  759.         if (ActiveDocument.Path != "")
  760.                 {
  761.                 buildpath();
  762.                 dropfxnow();
  763.                 }
  764.         else
  765.                 {
  766.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  767.  
  768.                 if (ans == 1)
  769.                         {
  770.                         ActiveDocument.SaveAs();
  771.                         }
  772.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  773.                         {
  774.                         buildpath();
  775.                         dropfxnow();
  776.                         }
  777.                 }
  778.         
  779.         ]]>
  780.       </SCRIPT>
  781.     </Item>
  782.  
  783.     <Item Type="File" CLASS="SQ Decor Bulleted List" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  784.     <Icon SRC="%Filename%"/>
  785.     <Description>*</Description>
  786.     <Filename SRC="%Filename%"/>
  787.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  788.         var src, dest, attr;
  789.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
  790.  
  791.         function buildpath()
  792.                 {
  793.                 if (ActiveDocument.InCurrentProject)
  794.                         {
  795.                         dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
  796.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  797.                         }
  798.                 else
  799.                         {
  800.                         dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
  801.                         attr = "SMDecors/%Filename%";
  802.                         }
  803.                 }
  804.  
  805.         function dropfxnow()
  806.                 {
  807.                 Application.FX.SelectDropPoint();
  808.                 Application.FX.CopyFile(src, dst);
  809.                 Application.FX.HTML('<DL><DT><IMG SRC="' + attr + '" ALT="*" BORDER="0" HSPACE="5" CLASS="SQBULLET"><\/DT><\/DL>');
  810.                 Selection.MoveLeft(0);Selection.MoveRight(0);
  811.                 }
  812.  
  813.         // First, check if the file is saved
  814.         if (ActiveDocument.Path != "")
  815.                 {
  816.                 buildpath();
  817.                 dropfxnow();
  818.                 }
  819.         else
  820.                 {
  821.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  822.  
  823.                 if (ans == 1)
  824.                         {
  825.                         ActiveDocument.SaveAs();
  826.                         }
  827.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  828.                         {
  829.                         buildpath();
  830.                         dropfxnow();
  831.                         }
  832.                 }
  833.         
  834.         ]]>
  835.       </SCRIPT>
  836.     </Item>
  837.  
  838.     <Item Type="File" CLASS="SQ Decor Button" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  839.     <Icon SRC="%Filename%"/>
  840.     <Description>%ASK:Description:%{Button ALT Text}</Description>
  841.     <Filename SRC="%Filename%"/>
  842.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  843.         var src, dest, attr;
  844.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
  845.  
  846.         function buildpath()
  847.                 {
  848.                 if (ActiveDocument.InCurrentProject)
  849.                         {
  850.                         dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
  851.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  852.                         }
  853.                 else
  854.                         {
  855.                         dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
  856.                         attr = "SMDecors/%Filename%";
  857.                         }
  858.                 }
  859.  
  860.         function dropfxnow()
  861.                 {
  862.                 Application.FX.CopyFile(src, dst);
  863.                 Application.FX.SelectDropPoint();
  864.                 Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  865.                 Application.FX.ShowDialog('ANCHOR');
  866.                 }
  867.  
  868.         // First, check if the file is saved
  869.         if (ActiveDocument.Path != "")
  870.                 {
  871.                 buildpath();
  872.                 dropfxnow();
  873.                 }
  874.         else
  875.                 {
  876.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  877.  
  878.                 if (ans == 1)
  879.                         {
  880.                         ActiveDocument.SaveAs();
  881.                         }
  882.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  883.                         {
  884.                         buildpath();
  885.                         dropfxnow();
  886.                         }
  887.                 }
  888.         
  889.         ]]>
  890.       </SCRIPT>
  891.     </Item>
  892.  
  893.     <Item Type="File" CLASS="SQ Decor Horizontal Rule" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  894.     <Icon SRC="%Filename%"/>
  895.     <Description>%ASK:Description:%--------------------</Description>
  896.     <Filename SRC="%Filename%"/>
  897.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  898.         var src, dest, attr;
  899.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Icon, 0, SRC)%";
  900.  
  901.         function buildpath()
  902.                 {
  903.                 if (ActiveDocument.InCurrentProject)
  904.                         {
  905.                         dst = Application.ProjectDirectory + "\\SMDecors\\%Filename%";
  906.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  907.                         }
  908.                 else
  909.                         {
  910.                         dst = ActiveDocument.Path + "\\SMDecors\\%Filename%";
  911.                         attr = "SMDecors/%Filename%";
  912.                         }
  913.                 }
  914.  
  915.         function dropfxnow()
  916.                 {
  917.                 Application.FX.CopyFile(src, dst);
  918.                 Application.FX.HTML('<P ALIGN=\"CENTER\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml(Description, 0)%' + '" BORDER="0"><\/P>');
  919.                 }
  920.  
  921.         // First, check if the file is saved
  922.         if (ActiveDocument.Path != "")
  923.                 {
  924.                 buildpath();
  925.                 dropfxnow();
  926.                 }
  927.         else
  928.                 {
  929.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  930.  
  931.                 if (ans == 1)
  932.                         {
  933.                         ActiveDocument.SaveAs();
  934.                         }
  935.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  936.                         {
  937.                         buildpath();
  938.                         dropfxnow();
  939.                         }
  940.                 }
  941.         
  942.         ]]>
  943.       </SCRIPT>
  944.     </Item>
  945.  
  946. <!-- Decor Item Templates August 10th -->
  947.  
  948. <!-- Specific URL Buttons: Done as of Aug 29th -->
  949.  
  950.     <Item Type="File" CLASS="Button: Specific URL" ID="%Filename%" FILEFILTER="*.jpg;*.gif;*.png">
  951.     <Icon SRC="%Filename%"/>
  952.     <Description>%ASK:Description:%{Button ALT Text}</Description>
  953.       <Url HREF="%ASK:URL:%{Enter URL here}"/>
  954.     <Filename SRC="%Filename%"/>
  955.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  956.         var src, dest, attr;
  957.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  958.  
  959.         function buildpath()
  960.                 {
  961.                 if (ActiveDocument.InCurrentProject)
  962.                         {
  963.                         dst = Application.ProjectDirectory + "\\images\\buttons\\%Filename%";
  964.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  965.                         }
  966.                 else
  967.                         {
  968.                         dst = ActiveDocument.Path + "\\images\\buttons\\%Filename%";
  969.                         attr = "images/buttons/%Filename%";
  970.                         }
  971.                 }
  972.  
  973.         function dropfxnow()
  974.                 {
  975.                 Application.FX.CopyFile(src, dst);
  976.                 Application.FX.SelectDropPoint();
  977.                 Application.FX.HTML('<A HREF=\"%thisItem.SQ_getChildAttribute(URL, 0, HREF)%\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  978.                 Application.FX.ShowDialog('ANCHOR');
  979.                 }
  980.  
  981.         // First, check if the file is saved
  982.         if (ActiveDocument.Path != "")
  983.                 {
  984.                 buildpath();
  985.                 dropfxnow();
  986.                 }
  987.         else
  988.                 {
  989.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  990.  
  991.                 if (ans == 1)
  992.                         {
  993.                         ActiveDocument.SaveAs();
  994.                         }
  995.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  996.                         {
  997.                         buildpath();
  998.                         dropfxnow();
  999.                         }
  1000.                 }
  1001.         
  1002.         ]]>
  1003.       </SCRIPT>
  1004.     </Item>
  1005.  
  1006. <!-- Specific URL Buttons: Done as of Aug 29th -->
  1007.  
  1008. <Item TYPE="Text" CLASS="Codelet File" ID="%Filename%">
  1009.       <Icon SRC="scripttags.gif"/>
  1010.     <Description>%ASK:Description:%{Codelet Description}</Description>
  1011.     <Filename SRC="%Filename%"/>
  1012.     <SCRIPT LANGUAGE="JSCRIPT">
  1013.         <![CDATA[
  1014.  
  1015.     Application.FX.HTML("","%Pathname%%Filename%","HEAD","%Filename%");
  1016.     
  1017.                 ]]>
  1018.         </SCRIPT>
  1019.  
  1020. </Item>
  1021.  
  1022. <Item TYPE="Text" CLASS="TextData" ID="%ID%">
  1023.       <Icon SRC="htmltags.gif"/>
  1024.     <Description>%ASK:Description:%{Description}</Description>
  1025.     <TextData><![CDATA[%Text%]]></TextData>
  1026.     <SCRIPT LANGUAGE="JSCRIPT">
  1027.                 <![CDATA[
  1028.                 Application.FX.SelectDropPoint();
  1029.                 var textFX = '%thisItem.SQ_getChildInnerHtml('TextData', 0)%';
  1030.                 Selection.TypeText(textFX);
  1031.                 ]]>
  1032.         </SCRIPT>
  1033. </Item>
  1034.  
  1035. <!-- AVI Movies: Done as of Aug 29th -->
  1036.  
  1037.     <Item Type="File" CLASS="AVI" ID="%Filename%" FILEFILTER="*.avi">
  1038.     <Description>%ASK:Description:%{AVI Movie Description}</Description>
  1039.     <Dimensions WIDTH="%ASK:Width:%{Width of Movie}" HEIGHT="%ASK:Height:%{Height of Movie}"/>
  1040.     <Filename SRC="%Filename%"/>
  1041.     <Icon SRC="movie.gif"/>
  1042.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  1043.         var src, dest, attr;
  1044.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  1045.  
  1046.         function buildpath()
  1047.                 {
  1048.                 if (ActiveDocument.InCurrentProject)
  1049.                         {
  1050.                         dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
  1051.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  1052.                         }
  1053.                 else
  1054.                         {
  1055.                         dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
  1056.                         attr = "multimedia/%Filename%";
  1057.                         }
  1058.                 }
  1059.  
  1060.         function dropfxnow()
  1061.                 {
  1062.                 Application.FX.CopyFile(src, dst);
  1063.                 Application.FX.SelectDropPoint();
  1064.                 Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
  1065.                 }
  1066.  
  1067.         // First, check if the file is saved
  1068.         if (ActiveDocument.Path != "")
  1069.                 {
  1070.                 buildpath();
  1071.                 dropfxnow();
  1072.                 }
  1073.         else
  1074.                 {
  1075.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  1076.  
  1077.                 if (ans == 1)
  1078.                         {
  1079.                         ActiveDocument.SaveAs();
  1080.                         }
  1081.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  1082.                         {
  1083.                         buildpath();
  1084.                         dropfxnow();
  1085.                         }
  1086.                 }
  1087.         
  1088.         ]]>
  1089.       </SCRIPT>
  1090.     </Item>
  1091.  
  1092. <!-- Avi Movies: Done as of Aug 29th -->
  1093.  
  1094. <!-- Quicktime Movies: Done as of Aug 29th -->
  1095.  
  1096.     <Item Type="File" CLASS="QuickTime" ID="%Filename%" FILEFILTER="*.mov">
  1097.     <Description>%ASK:Description:%{QuickTime Movie Description}</Description>
  1098.     <Dimensions WIDTH="%ASK:Width:%{Width of Movie}" HEIGHT="%ASK:Height:%{Height of Movie}"/>
  1099.     <Filename SRC="%Filename%"/>
  1100.     <Icon SRC="movie.gif"/>
  1101.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  1102.         var src, dest, attr;
  1103.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  1104.  
  1105.         function buildpath()
  1106.                 {
  1107.                 if (ActiveDocument.InCurrentProject)
  1108.                         {
  1109.                         dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
  1110.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  1111.                         }
  1112.                 else
  1113.                         {
  1114.                         dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
  1115.                         attr = "multimedia/%Filename%";
  1116.                         }
  1117.                 }
  1118.  
  1119.         function dropfxnow()
  1120.                 {
  1121.                 Application.FX.CopyFile(src, dst);
  1122.                 Application.FX.SelectDropPoint();
  1123.                 Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
  1124.                 }
  1125.  
  1126.         // First, check if the file is saved
  1127.         if (ActiveDocument.Path != "")
  1128.                 {
  1129.                 buildpath();
  1130.                 dropfxnow();
  1131.                 }
  1132.         else
  1133.                 {
  1134.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  1135.  
  1136.                 if (ans == 1)
  1137.                         {
  1138.                         ActiveDocument.SaveAs();
  1139.                         }
  1140.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  1141.                         {
  1142.                         buildpath();
  1143.                         dropfxnow();
  1144.                         }
  1145.                 }
  1146.         
  1147.         ]]>
  1148.       </SCRIPT>
  1149.     </Item>
  1150.  
  1151. <!-- Quicktime Movies: Done as of Aug 29th -->
  1152.  
  1153. <!-- Shockwave: Done as of Aug 29th -->
  1154.  
  1155.     <Item Type="File" CLASS="Shockwave" ID="%Filename%" FILEFILTER="*.dcr">
  1156.     <Description>%ASK:Description:%{Shockwave Description}</Description>
  1157.     <Dimensions WIDTH="%ASK:Width:%{Width}" HEIGHT="%ASK:Height:%{Height}"/>
  1158.     <Filename SRC="%Filename%"/>
  1159.     <Icon SRC="burst.gif"/>
  1160.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  1161.         var src, dest, attr;
  1162.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  1163.  
  1164.         function buildpath()
  1165.                 {
  1166.                 if (ActiveDocument.InCurrentProject)
  1167.                         {
  1168.                             dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
  1169.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  1170.                         }
  1171.                 else
  1172.                         {
  1173.                         dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
  1174.                         attr = "multimedia/%Filename%";
  1175.                         }
  1176.                 }
  1177.  
  1178.         function dropfxnow()
  1179.                 {
  1180.                 Application.FX.CopyFile(src, dst);
  1181.                 Application.FX.SelectDropPoint();
  1182.                 Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
  1183.                 }
  1184.  
  1185.         // First, check if the file is saved
  1186.         if (ActiveDocument.Path != "")
  1187.                 {
  1188.                 buildpath();
  1189.                 dropfxnow();
  1190.                 }
  1191.         else
  1192.                 {
  1193.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  1194.  
  1195.                 if (ans == 1)
  1196.                         {
  1197.                         ActiveDocument.SaveAs();
  1198.                         }
  1199.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  1200.                         {
  1201.                         buildpath();
  1202.                         dropfxnow();
  1203.                         }
  1204.                 }
  1205.         
  1206.         ]]>
  1207.       </SCRIPT>
  1208.     </Item>
  1209.  
  1210. <!-- Shockwave: Done as of Aug 29th -->
  1211.  
  1212. <!-- VRML Worlds: Done as of Aug 29th -->
  1213.  
  1214.     <Item Type="File" CLASS="VRML" ID="%Filename%" FILEFILTER="*.wrl">
  1215.     <Description>%ASK:Description:%{VRML World Description}</Description>
  1216.     <Dimensions WIDTH="%ASK:Width:%{Width}" HEIGHT="%ASK:Height:%{Height}"/>
  1217.     <Filename SRC="%Filename%"/>
  1218.     <Icon SRC="world1.gif"/>
  1219.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  1220.         var src, dest, attr;
  1221.         src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  1222.  
  1223.         function buildpath()
  1224.                 {
  1225.                 if (ActiveDocument.InCurrentProject)
  1226.                         {
  1227.                         dst = Application.ProjectDirectory + "\\multimedia\\%Filename%";
  1228.                         attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  1229.                         }
  1230.                 else
  1231.                         {
  1232.                         dst = ActiveDocument.Path + "\\multimedia\\%Filename%";
  1233.                         attr = "multimedia/%Filename%";
  1234.                         }
  1235.                 }
  1236.  
  1237.         function dropfxnow()
  1238.                 {
  1239.                 Application.FX.CopyFile(src, dst);
  1240.                 Application.FX.SelectDropPoint();
  1241.                 Application.FX.HTML('<EMBED SRC=\"' + attr + '\" HEIGHT=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , HEIGHT)%\" WIDTH=\"%thisItem.SQ_getChildAttribute(Dimensions, 0 , WIDTH)%\">');
  1242.                 }
  1243.  
  1244.         // First, check if the file is saved
  1245.         if (ActiveDocument.Path != "")
  1246.                 {
  1247.                 buildpath();
  1248.                 dropfxnow();
  1249.                 }
  1250.         else
  1251.                 {
  1252.                 ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  1253.  
  1254.                 if (ans == 1)
  1255.                         {
  1256.                         ActiveDocument.SaveAs();
  1257.                         }
  1258.                 if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  1259.                         {
  1260.                         buildpath();
  1261.                         dropfxnow();
  1262.                         }
  1263.                 }
  1264.         
  1265.         ]]>
  1266.       </SCRIPT>
  1267.     </Item>
  1268.  
  1269. <!-- VRML Worlds: Done as of Aug 29th -->
  1270.  
  1271. </Items>